<form action="/${orgi}/design/query/setproperties/${report.id!''}/${reportModel.id!''}.html" data-toggle="ajax-form" data-target="#cz_${reportModel.id!''}" method="post" id="mainForm">
<input type="hidden" id="pkgid" name="pkgid" value="${pkgid!''}">
<input type="hidden" id="id" name="id" value="${layoutid!''}">
<input type="hidden" id="layoutid" name="layoutid" value="${layoutid!''}">
<div style="width:100%;">
	<div style="min-width:240px;">
		<div class="row-fluid">
			<div class="span8" style="text-align:right;"><h3>合并单元格（列宽）：</h3></div>
			<div class="span2">
				<div style="position: relative; display: inline;" class="ctrl_btn">
					<input type="text"  name="colspan" value="<#if layoutData??>${layoutData.style.colspan!'1'}</#if>" style="padding-right: 28px;padding: 6px 4px;"/>
					<button class="increase" type="button" name="setup"></button>
					<button class="decrease" type="button" name="setdown"></button>
				</div>
			</div>
		</div>
		 <div class="row-fluid">
			<div class="span8" style="text-align:right;"><h3>合并单元格（行宽）：</h3></div>
			<div class="span2">
				<div style="position: relative; display: inline;" class="ctrl_btn">
					<input type="text"  name="rowspan" value="<#if layoutData??>${layoutData.style.rowspan!'1'}</#if>" style="padding-right: 28px;padding: 6px 4px;"/>
					<button class="increase" type="button" name="setup"></button>
					<button class="decrease" type="button" name="setdown"></button>
				</div>
			</div>
		 </div>
		 <div class="row-fluid">
			<div class="span8" style="text-align:right;"><h3>单元格宽度：</h3></div>
			<div class="span4">
				<select name="widthdef" class="span12" onchange="if($(this).val() == 'customer'){$('#customer_width').show();}else{$('#customer_width').hide();}">
					<option value="auto" <#if layoutData?? && layoutData.style.widthdef == 'auto'>selected="selected"</#if>>默认</option>
					<option value="customer" <#if layoutData?? && layoutData.style.widthdef == 'customer'>selected="selected"</#if>>自定义</option>
				</select>
			</div>
		</div>
		<div class="row-fluid" id="customer_width" style="<#if !(layoutData?? && layoutData.style.widthdef == 'selected')>display:none;</#if>">
			<div class="span8" style="text-align:right;"><h3></h3></div>
			<div class="span2">
				<div style="position: relative; display: inline;" class="ctrl_btn">
					<input type="text"  name="width" value="<#if layoutData??>${layoutData.style.width!'300'}</#if>" style="padding-right: 28px;padding: 6px 4px;"/>
					<button class="increase" type="button" name="setup"></button>
					<button class="decrease" type="button" name="setdown"></button>
				</div>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span8" style="text-align:right;"><h3>单元格高度：</h3></div>
			<div class="span4">
				<select name="heightdef" class="span12" onchange="if($(this).val() == 'customer'){$('#customer_height').show();}else{$('#customer_height').hide();}">
					<option value="auto" <#if layoutData?? && layoutData.style.heightdef == 'auto'>selected="selected"</#if>>默认</option>
					<option value="customer" <#if layoutData?? && layoutData.style.heightdef == 'customer'>selected="selected"</#if>>自定义</option>
				</select>
			</div>	
		</div>
		<div class="row-fluid" id="customer_height" STYLE="<#if !(layoutData?? && layoutData.style.heightdef == 'selected')>display:none;</#if>">
			<div class="span8" style="text-align:right;"><h3></h3></div>
			<div class="span2">
				<div style="position: relative; display: inline;" class="ctrl_btn">
					<input type="text"  name="height" value="<#if layoutData??>${layoutData.style.height!'300'}</#if>" style="padding-right: 28px;padding: 6px 4px;"/>
					<button class="increase" type="button" name="setup"></button>
					<button class="decrease" type="button" name="setdown"></button>
				</div>
			</div>		
		</div>
		<div class="row-fluid">
			<div class="span6"><h3>单元格内空白：</h3></div> 						
		</div>

		<div class="row-fluid">
			<div class="span3"></div>
			<div class="span2"><h3>上：</h3></div>
			<div class="span2">							
				<div style="position: relative; display: inline;" class="ctrl_btn">
					<input type="text"  name="padding_top" value="<#if layoutData??>${layoutData.style.padding_top!'2'}</#if>" style="padding-right: 28px;padding: 6px 4px;"/>
					<button class="increase" type="button" name="setup"></button>
					<button class="decrease" type="button" name="setdown"></button>
				</div>
			</div>
		</div>

		<div class="row-fluid">
			<div class="span2" style="text-align:right;"><h3>左：</h3></div>
			<div class="span2">							
				<div style="position: relative; display: inline;" class="ctrl_btn">
					<input type="text"  name="padding_left" value="<#if layoutData??>${layoutData.style.padding_left!'5'}</#if>" style="padding-right: 28px;padding: 6px 4px;"/>
					<button class="increase" type="button" name="setup"></button>
					<button class="decrease" type="button" name="setdown"></button>
				</div>
			</div>
			<div class="span2"></div>
			<div class="span2" style="text-align:right;"><h3>右：</h3></div>
			<div class="span2">							
				<div style="position: relative; display: inline;" class="ctrl_btn">
					<input type="text"  name="padding_right" value="<#if layoutData??>${layoutData.style.padding_right!'5'}</#if>" style="padding-right: 28px;padding: 6px 4px;"/>
					<button class="increase" type="button" name="setup"></button>
					<button class="decrease" type="button" name="setdown"></button>
				</div>
			</div>
		</div>

		<div class="row-fluid">
			<div class="span3"></div>
			<div class="span2" style="text-align:right;"><h3>下：</h3></div>
			<div class="span2">							
				<div style="position: relative; display: inline;" class="ctrl_btn">
					<input type="text"  name="padding_bottom" value="<#if layoutData??>${layoutData.style.padding_bottom!'2'}</#if>" style="padding-right: 28px;padding: 6px 4px;"/>
					<button class="increase" type="button" name="setup"></button>
					<button class="decrease" type="button" name="setdown"></button>
				</div>
			</div>
		</div>


		<div class="bottomBg">
			<div class="btnWrap">
				<input type="submit" class="subButtonStyle" value="确认"/>
				<input type="button" onclick="closeR3ArtDialog()" class="cancelButtonStyle" value="取消"/>
			</div>
		</div>
	</div>
</div>
<script language="javascript">
	//20140310 Bina
	$(document).ready(function(){
		$('.increase').on('click',function(event){
			var value = $(this).parent().find("input").val();
			if($.isNumeric( value )){
				 $(this).parent().find("input").val(parseInt(value)+1);
			}
			//event.stopPropagation();//点击Button阻止事件冒泡到document
		});
		$('.decrease').on('click',function(event){
			var value = $(this).parent().find("input").val();
			if($.isNumeric( value ) && (parseInt(value)-1) > 0 ){
				 $(this).parent().find("input").val(parseInt(value)-1);
			}
			//event.stopPropagation();//点击Button阻止事件冒泡到document
		});		
	});
</script>

</form>
